package com.dongrj.framework.starter.sms.client;

import com.dongrj.framework.starter.sms.SmsRequest;
import com.dongrj.framework.starter.sms.SmsResponse;
import com.dongrj.framework.starter.sms.enums.SmsEnum;
import com.dongrj.framework.starter.sms.properties.FeiGeSmsProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.reactive.function.client.WebClient;

@Slf4j
public class FeiGeSmsClient extends AbstractSmsClient {
    private static final String SEND_SMS_URL = "https://api.4321.sh/sms/send";

    private final WebClient webClient;

    private final FeiGeSmsProperties feiGeSmsProperties;

    public FeiGeSmsClient(WebClient webClient, FeiGeSmsProperties feiGeSmsProperties) {
        this.webClient = webClient;
        this.feiGeSmsProperties = feiGeSmsProperties;
    }


    @Override
    public SmsResponse doSend(SmsRequest smsRequest) {
        this.webClient.post();
        return null;
    }

    @Override
    public SmsEnum smsEnum() {
        return SmsEnum.FeiGe;
    }
}
